const KoaRouter = require("@koa/router");
const { create, showAvatarImage } = require("../controller/user.controller");
const { verifyUser, handlePassword } = require("../middleware/user.middleware");

const userRouter = new KoaRouter({ prefix: "/users" }); // 设置路由前缀

userRouter.get("/avatar/:userId", showAvatarImage); // 为用户提供头像

module.exports = userRouter;
